import React, { Component } from 'react'
import {createPortal} from 'react-dom'

export default class Dialog extends Component {
  render() {
    return createPortal(<div>dialog2 {this.props.msg}</div>,document.getElementById('root-dialog'))
  }
}
